use gdk_window_get_pointer() to get pointer coordinates, but limit its
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 15 Jun 2006 18:46:03 +0000 (18:46 +0000)
committerCarlos Garnacho <carlosg@src.gnome.org>
Thu, 15 Jun 2006 18:46:03 +0000 (18:46 +0000)
commit664b8c7b47a97de96b0ef5ddebc22b7aa3483e78
treea81b4304228519915565daeeb35e442fa3122538
parenta2972ec4889bd431716b0ae642c416eff5e84181
use gdk_window_get_pointer() to get pointer coordinates, but limit its

2006-06-15  Carlos Garnacho  <carlosg@gnome.org>

        * gtk/gtknotebook.c (gtk_notebook_motion_notify): use
        gdk_window_get_pointer() to get pointer coordinates, but limit its
        calls to a maximum of 45 times per second for not being too
        CPU/network abusive. stop drag operation if (event->state &
        GDK_BUTTON1_MASK) is FALSE to prevent tabs from "adhering" to the
        pointer. Fixes bug #341571
        (gtk_notebook_calculate_tabs_allocation), (gtk_notebook_button_press):
        get rid of the "tab jumps to pointer" sensation when beginning a drag
        by using the pointer offset in the tab when the drag begins as an
        anchor.
        (gtk_notebook_redraw_tabs_union): remove, it wasn't worth the little
        performance gain and could draw artifacts under some circumstances.
        (gtk_notebook_drag_end): do not reparent the detached tab label until
        the animation has ended.
ChangeLog
ChangeLog.pre-2-10
gtk/gtknotebook.c